<!--  Test della funzione __selectAttributes solo su client -->

<HTML>
	<HEAD>
	<script type="text/javascript">
	
	
	function inizio(){
		var output= document.getElementById('scrivi');

		alert('inizio');
	var a = __selectAttributes(document, '//div[@id="main"]/div');
	for (var n in a){
		output.innerHTML += (a[n].attr + "<br/>"); 
	}
	output.innerHTML+= "<br/>";
	for (var n in a){
		output.innerHTML += (a[n].giallo + "<br/>"); 
	}
	
	}
	
	</script>
	<script type="text/javascript" src="./XPath.js"></script>
	<script type="text/javascript" src="./Array.js"></script>
	<script type="text/javascript" src="frameworkFunctions_client.js"></script>
	</HEAD>
		<body onload=" inizio ()">
			<div id='main'>
				<div attr='x'>
					aaaaa
				</div>
				<div attr='y'>
					bbbbb
				</div>
				<div>
					cccccc
				</div>
				<div>
					ddddd
				</div>
				<div giallo='sdfdskfjdsk'>
				eeee
				</div>
				<div>
					fffff
				</div>
			</div>
			<div id='scrivi' style="background-color: yellow;"></div>
		</body>
</HTML>